import '@/styles/common.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'
import { lazyPlugs } from './directives'
import{componentsPlugs} from './components'
// import { getCategory } from './apis/testApi'
// //测试接口函数
// getCategory().then(res=>{
//     console.log(res)
// })

//图片懒加载

const app = createApp(App)
const pinia =  createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.use(lazyPlugs)
app.use(componentsPlugs)
app.mount('#app')




